package com.core.family.biz.yizhao.domain.po;

import com.core.family.biz.yizhao.domain.dto.YzUserDto;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author honglei
 * @version 1.0
 * @time: 2023-7-13 9:59:31
 * @Description PO对象 有一招评价表
 */
@Data
@TableName(value = "yz_comment")
public class YzComment implements Serializable {


        /*
        *  附件，分割
        */

        @TableField(value = "attements")
        private String attements;

        /*
        *  被评价人id
        */
        @TableField(value = "uid_to")
        private Integer bUserId;

        /*
        *  评价内容
        */
        @NotNull(message = "评价内容不能为空")
        @TableField(value = "content")
        private String content;

        /*
        *
        */
        @TableField(value = "id")
        private Integer id;

        /*
        *
        */

        @TableField(value = "kind_name")
        private String kindName;

        /*
        *  评价等级
        */
        @TableField(value = "level")
        private Integer level;

        /*
        *  评价所有人id
        */
        @NotNull(message = "评价人id不能为空")
        @TableField(value = "uid_fr")
        private Integer oUserId;

        /*
        *  关联订单
        */
        @TableField(value = "order_id")
        private Integer orderId;

        /*
        *
        */

        @TableField(value = "order_name")
        private String orderName;

        /*
        *
        */
        @TableField(value = "parent_id")
        private Integer parentId;

        /*
        *
        */
        @TableField(value = "price")
        private Long price;

        /*
        *
        */

        @TableField(value = "product_name")
        private String productName;

        /*
        *
        */

        @TableField(value = "uheadimg_fr")
        private String userHeadImg;
        @TableField(value = "uname_fr")
        private String userNameSt;

        @TableField(value = "uheadimg_to")
        private String uHeadimgTo;
        @TableField(value = "uname_to")
        private String unameTo;





        @TableField(exist = false)
        private YzUserDto userFr;

        @TableField(exist = false)
        private YzUserDto userTo;

        //评价的评价
        @TableField(exist = false)
        private List<YzComment> subList;

}
